package com.sgb.kjwl.model.entity.packers;

import android.text.TextUtils;

import com.google.gson.annotations.SerializedName;
import com.sgb.kjwl.model.entity.ShowList;
import com.sgb.kjwl.model.entity.self.SelfTeamIntroduceEntity;

import java.io.Serializable;
import java.util.List;

/**
 * Created by WYJ on 2020/8/26.
 */
public class Packer3Entity implements Serializable {


    /**
     * businessScopes :
     * teamName : 哈哈
     * no : 202004276661211
     * publishTime : 2020-04-27
     * address : 澳门
     * teamSize : 100人
     * id : 136
     * isCompany : 0
     */

    private String businessScopes; //团队分类
    private String teamName; //工队名称
    private String no;
    private String publishTime; //发布时间
    private String address; //所在地
    private String teamSize; //工队人数 //废弃
    private String teamNumber; //工队人数
    private String id;
    private int isCompany; //企业类型0:个人1:企业
    private String contact;
    private String avatarAddress;
    private String serviceAreaName;
    private long createTime;
    private String companyNo;
    private String teamType; //工程类型
    private String teamTypeName; //工程类型
    private String fileName; //资质证书：1有2无
    private String isHealth; //健康证明：1有2无
    private boolean mIsApply;
    //工种报价和人气工队字段
    /**
     * count : 2
     */

    private Integer count;
    /**
     * unit : Ty
     * material : null
     * typeWorkName : null
     * price : 222
     * hasMaterial : 0
     * equipment : null
     * location : 北京北京市东城区
     */

    private String unit;
    private String material;
    private String typeWorkName;
    private String price;
    private Integer hasMaterial;
    private String equipment;
    private String location;
    /**
     * addressAll : 山西省阳泉市平定县
     * employmentTypeName : 个人
     * employmentNumber : 100
     * employmentStatusName : 招工中
     * duration : 10
     * createTime : 1603880061908
     * employmentDescription : 用工说明用工说明用工说明用工说明用工说明用工说明用工说明用工说明用工说明用工说明用工说明用工说明用工说明用工说明用工说明用工说明
     * endTime : 1603880061908
     * durationUnitName : 天
     * salaryUnitName : 元/小时
     * salary : 1000
     */

    private String addressAll;
    private String employmentTypeName;
    private String employmentNumber;
    private String employmentStatusName;
    private String duration;
    private String createTimeX;
    private String employmentDescription;
    private String endTimeX;
    private String durationUnitName;
    private String salaryUnitName;
    private String salary;
    /**
     * teamSize : 6
     * authTime : 1615272115562
     * companyIcon : https://shigongbang.oss-cn-hangzhou.aliyuncs.com/member_center/610000/20201235214420573105654.png
     * id : 137668
     * teamType : 工程公司
     */

    private long authTime;
    private String companyIcon;

    public boolean isIsApply() {
        return mIsApply;
    }

    public void setIsApply(boolean mIsApply) {
        this.mIsApply = mIsApply;
    }

    public String getTeamNumber() {
        return teamNumber;
    }

    public void setTeamNumber(String teamNumber) {
        this.teamNumber = teamNumber;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getIsHealth() {
        return isHealth;
    }

    public void setIsHealth(String isHealth) {
        this.isHealth = isHealth;
    }

    public String getTeamTypeName() {
        return teamTypeName;
    }

    public void setTeamTypeName(String teamTypeName) {
        this.teamTypeName = teamTypeName;
    }

    private String phoneNumber;

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public String getTeamType() {
        return teamType;
    }

    public void setTeamType(String teamType) {
        this.teamType = teamType;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    private String companyName;

    public String getContractCompany() {
        return contractCompany;
    }

    public void setContractCompany(String contractCompany) {
        this.contractCompany = contractCompany;
    }

    private String contractCompany;

    public String getAvatarAddress() {
        return avatarAddress;
    }

    public void setAvatarAddress(String avatarAddress) {
        this.avatarAddress = avatarAddress;
    }

    public String getServiceAreaName() {
        return serviceAreaName;
    }

    public void setServiceAreaName(String serviceAreaName) {
        this.serviceAreaName = serviceAreaName;
    }

    public long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(long createTime) {
        this.createTime = createTime;
    }

    public String getCompanyNo() {
        return companyNo;
    }

    public void setCompanyNo(String companyNo) {
        this.companyNo = companyNo;
    }

    // 首页-找工程 对应字段
    private String payWay; //付款方式
    private String projectPrice; //工程造价
    private String projectName; //工程名称
    private String categoryName; //工程分类
    private String category;
    private long endDate; // 截至时间
    private String retentionMoney; // 保证金
    private long startTime;
    private long endTime;

    private String companyId; // 企业店铺No
    private String userNo; // 个人店铺no
    private String status; // 0进行中 1已截至

    public String getCategory() {
        if (category == null) {
            return "";
        }
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getUserNo() {
        return userNo;
    }

    public void setUserNo(String userNo) {
        this.userNo = userNo;
    }

    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    public String getPayWay() {
        return payWay;
    }

    public void setPayWay(String payWay) {
        this.payWay = payWay;
    }

    public String getProjectPrice() {
        return projectPrice;
    }

    public void setProjectPrice(String projectPrice) {
        this.projectPrice = projectPrice;
    }

    public String getProjectName() {
        return projectName;
    }

    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public String getBusinessScopes() {
        return businessScopes;
    }

    public void setBusinessScopes(String businessScopes) {
        this.businessScopes = businessScopes;
    }

    public String getTeamName() {
        return teamName;
    }

    public void setTeamName(String teamName) {
        this.teamName = teamName;
    }

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public String getPublishTime() {
        return publishTime;
    }

    public void setPublishTime(String publishTime) {
        this.publishTime = publishTime;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getTeamSize() {
        return teamSize;
    }

    public void setTeamSize(String teamSize) {
        this.teamSize = teamSize;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public int getIsCompany() {
        return isCompany;
    }

    public void setIsCompany(int isCompany) {
        this.isCompany = isCompany;
    }

    public String getContact() {
        return contact;
    }

    public void setContact(String contact) {
        this.contact = contact;
    }

    public long getEndDate() {
        return endDate;
    }

    public void setEndDate(long endDate) {
        this.endDate = endDate;
    }

    public String getRetentionMoney() {
        return retentionMoney;
    }

    public void setRetentionMoney(String retentionMoney) {
        this.retentionMoney = retentionMoney;
    }

    public long getStartTime() {
        return startTime;
    }

    public void setStartTime(long startTime) {
        this.startTime = startTime;
    }

    public long getEndTime() {
        return endTime;
    }

    public void setEndTime(long endTime) {
        this.endTime = endTime;
    }


    private String nationName;  //民族
    private String nation;
    private List<SelfTeamIntroduceEntity.ServiceAreasBean> workArea;
    private String identity;
    private String workAreaName;
    private String name; //名称
    private String workType;
    private String workYear; //工人工龄
    private String contactPhone; //联系电话
    private String age;  //年龄
    private String classLeaderNum; //班组人数
    private String workTypeName;  //工种
    private String cityName;
    private String workingAge;  //班组长工龄
    private String industryName;
    private int sex;
    private String industryNo;
    private String categoryNo;
    private String proficiencyName; // 熟练度
    private int salaryType;

    public int getSalaryType() {
        return salaryType;
    }

    public void setSalaryType(int salaryType) {
        this.salaryType = salaryType;
    }

    public String getProficiencyName() {
        return proficiencyName;
    }

    public void setProficiencyName(String proficiencyName) {
        this.proficiencyName = proficiencyName;
    }

    public String getNationName() {
        return nationName;
    }

    public void setNationName(String nationName) {
        this.nationName = nationName;
    }

    public String getNation() {
        return nation;
    }

    public void setNation(String nation) {
        this.nation = nation;
    }

    public List<SelfTeamIntroduceEntity.ServiceAreasBean> getWorkArea() {
        return workArea;
    }

    public void setWorkArea(List<SelfTeamIntroduceEntity.ServiceAreasBean> workArea) {
        this.workArea = workArea;
    }

    public String getIdentity() {
        return identity;
    }

    public void setIdentity(String identity) {
        this.identity = identity;
    }

    public String getWorkAreaName() {
        return workAreaName;
    }

    public void setWorkAreaName(String workAreaName) {
        this.workAreaName = workAreaName;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getWorkType() {
        return workType;
    }

    public void setWorkType(String workType) {
        this.workType = workType;
    }

    public String getWorkYear() {
        return workYear;
    }

    public void setWorkYear(String workYear) {
        this.workYear = workYear;
    }

    public String getContactPhone() {
        return contactPhone;
    }

    public void setContactPhone(String contactPhone) {
        this.contactPhone = contactPhone;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    public String getClassLeaderNum() {
        return classLeaderNum;
    }

    public void setClassLeaderNum(String classLeaderNum) {
        this.classLeaderNum = classLeaderNum;
    }

    public String getWorkTypeName() {
        return workTypeName;
    }

    public void setWorkTypeName(String workTypeName) {
        this.workTypeName = workTypeName;
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public String getWorkingAge() {
        return workingAge;
    }

    public void setWorkingAge(String workingAge) {
        this.workingAge = workingAge;
    }

    public String getIndustryName() {
        return industryName;
    }

    public void setIndustryName(String industryName) {
        this.industryName = industryName;
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public String getIndustryNo() {
        return industryNo;
    }

    public void setIndustryNo(String industryNo) {
        this.industryNo = industryNo;
    }

    public String getCategoryNo() {
        return categoryNo;
    }

    public void setCategoryNo(String categoryNo) {
        this.categoryNo = categoryNo;
    }

    private int type;
    private int state;
    private String winningName;
    private String cancelReason;
    private String cancelTime;
    private String created;
    private String region;
    private String budgetPrice;
    private String typeName;
    private String stateName;
    private String distance; //距离
    private String localLng; //经度
    private String localLat; //纬度

    public List<ShowList> getShowList() {
        return showList;
    }

    public void setShowList(List<ShowList> showList) {
        this.showList = showList;
    }

    private List<ShowList> showList;

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getWinningName() {
        return winningName;
    }

    public void setWinningName(String winningName) {
        this.winningName = winningName;
    }

    public String getCancelReason() {
        return cancelReason;
    }

    public void setCancelReason(String cancelReason) {
        this.cancelReason = cancelReason;
    }

    public String getCancelTime() {
        return cancelTime;
    }

    public void setCancelTime(String cancelTime) {
        this.cancelTime = cancelTime;
    }

    public String getCreated() {
        return created;
    }

    public void setCreated(String created) {
        this.created = created;
    }

    public String getRegion() {
        return region;
    }

    public void setRegion(String region) {
        this.region = region;
    }

    public String getBudgetPrice() {
        return budgetPrice;
    }

    public void setBudgetPrice(String budgetPrice) {
        this.budgetPrice = budgetPrice;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public String getStateName() {
        return stateName;
    }

    public void setStateName(String stateName) {
        this.stateName = stateName;
    }

    public String getDistance() {
        return distance;
    }

    public void setDistance(String distance) {
        this.distance = distance;
    }

    public String getLocalLng() {
        return localLng;
    }

    public void setLocalLng(String localLng) {
        this.localLng = localLng;
    }

    public String getLocalLat() {
        return localLat;
    }

    public void setLocalLat(String localLat) {
        this.localLat = localLat;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getMaterial() {
        return material;
    }

    public void setMaterial(String material) {
        this.material = material;
    }

    public String getTypeWorkName() {
        return typeWorkName;
    }

    public void setTypeWorkName(String typeWorkName) {
        this.typeWorkName = typeWorkName;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public Integer getHasMaterial() {
        return hasMaterial;
    }

    public void setHasMaterial(Integer hasMaterial) {
        this.hasMaterial = hasMaterial;
    }

    public String getEquipment() {
        return equipment;
    }

    public void setEquipment(String equipment) {
        this.equipment = equipment;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public String getAddressAll() {
        return addressAll;
    }

    public void setAddressAll(String addressAll) {
        this.addressAll = addressAll;
    }

    public String getEmploymentTypeName() {
        return employmentTypeName;
    }

    public void setEmploymentTypeName(String employmentTypeName) {
        this.employmentTypeName = employmentTypeName;
    }

    public String getEmploymentNumber() {
        return employmentNumber;
    }

    public void setEmploymentNumber(String employmentNumber) {
        this.employmentNumber = employmentNumber;
    }

    public String getEmploymentStatusName() {
        return employmentStatusName;
    }

    public void setEmploymentStatusName(String employmentStatusName) {
        this.employmentStatusName = employmentStatusName;
    }

    public String getDuration() {
        return duration;
    }

    public void setDuration(String duration) {
        this.duration = duration;
    }

    public String getCreateTimeX() {
        return createTimeX;
    }

    public void setCreateTimeX(String createTimeX) {
        this.createTimeX = createTimeX;
    }

    public String getEmploymentDescription() {
        return employmentDescription;
    }

    public void setEmploymentDescription(String employmentDescription) {
        this.employmentDescription = employmentDescription;
    }

    public String getEndTimeX() {
        return endTimeX;
    }

    public void setEndTimeX(String endTimeX) {
        this.endTimeX = endTimeX;
    }

    public String getDurationUnitName() {
        return durationUnitName;
    }

    public void setDurationUnitName(String durationUnitName) {
        this.durationUnitName = durationUnitName;
    }

    public String getSalaryUnitName() {
        return salaryUnitName;
    }

    public void setSalaryUnitName(String salaryUnitName) {
        this.salaryUnitName = salaryUnitName;
    }

    public String getSalary() {
        return salary;
    }

    public void setSalary(String salary) {
        this.salary = salary;
    }

    public long getAuthTime() {
        return authTime;
    }

    public void setAuthTime(long authTime) {
        this.authTime = authTime;
    }

    public String getCompanyIcon() {
        return companyIcon;
    }

    public void setCompanyIcon(String companyIcon) {
        this.companyIcon = companyIcon;
    }

    //招标方式：1、资格预审；2、资格后审；3、报价即报名  2.9改为报名方式
    private Integer verticalTypeValue;
    //招标方式翻译
    private String verticalTypeName;

    // 发布时间
    private long applyEndTime;
    // 中标时间
    private long winningTime;
    // 竞标时间
    private long bidTime;

    private String[][] goodsLists;
    private String[] goodsHeaders;

    //招标轮次
    private String rotation;

    public String getRotation() {
        return rotation;
    }

    public void setRotation(String rotation) {
        this.rotation = rotation;
    }

    public String[][] getGoodsLists() {
        return goodsLists;
    }

    public void setGoodsLists(String[][] goodsLists) {
        this.goodsLists = goodsLists;
    }

    public String[] getGoodsHeaders() {
        return goodsHeaders;
    }

    public void setGoodsHeaders(String[] goodsHeaders) {
        this.goodsHeaders = goodsHeaders;
    }

    public Integer getVerticalTypeValue() {
        return verticalTypeValue;
    }

    public void setVerticalTypeValue(Integer verticalTypeValue) {
        this.verticalTypeValue = verticalTypeValue;
    }

    public String getVerticalTypeName() {
        return verticalTypeName;
    }

    public void setVerticalTypeName(String verticalTypeName) {
        this.verticalTypeName = verticalTypeName;
    }

    public long getApplyEndTime() {
        return applyEndTime;
    }

    public void setApplyEndTime(long applyEndTime) {
        this.applyEndTime = applyEndTime;
    }

    public long getWinningTime() {
        return winningTime;
    }

    public void setWinningTime(long winningTime) {
        this.winningTime = winningTime;
    }

    public long getBidTime() {
        return bidTime;
    }

    public void setBidTime(long bidTime) {
        this.bidTime = bidTime;
    }

    public String getUpstage(String category){
        if (!TextUtils.isEmpty(category)){
            String[] split = category.split("\\|");
            return split[split.length - 1];
        }else {
            return "";
        }
    }
}
